#include<bits/stdc++.h>
using namespace std;
const int maxn=1e5+5;
int n;
int a[maxn];
int ans,l,r;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>a[i];
    }
    sort(a+1,a+n+1);
    ans=n;
    l=1,r=1;
    while(l<=n&&r<=n){
        if(a[l]<a[r]){
            ans--;
            l++,r++;
        }else{
            r++;
        }
    }
    cout<<ans<<endl;
    return 0;
}
